package com.example.mapper;

import com.example.pojo.ChatRecord;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ChatRecordMapper {

    ChatRecord getChatRecordById(String id);

    List<ChatRecord> getAllChatRecords();

    /**
     * 完整插入整个聊天记录，要提供全部的chatMessage哦
     * @param chatRecord 完整聊天记录
     */
    void insertChatRecord(ChatRecord chatRecord);
}
